package com.koron.css2.newProjectCenter.Enum;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum PjInfoProcessStateEnum {

    REGISTER("register", "登记"),
    REGISTER_APPROVAL("registerApproval", "信息筛查"),
    INFO_APPROVAL("infoApproval","资料复核"),
    INVITATION_SURVEY("invitationSurvey","勘察邀约"),
    INVITATION_ACCEPT("invitationAccept","邀约接受"),
    SURVEY("survey","施工勘察"),
    DESIGN("design","设计"),
    DESIGN_APPROVAL("designApproval","设计审批"),
    BUDGET("budget","预算编制"),
    BUDGET_APPROVAL("budgetApproval","预算编制审批"),
    BUILD("build","施工计划"),
    INSTALL_BUILD("installBuild","安装施工"),
    REGISTER_ACCOUNT("registerAccount","立户"),
    REGISTER_ACCOUNT_APPROVAL("registerAccountApproval","立户审批"),
    INVITATION_CHECK("invitationCheck","验收邀约"),
    INVITATION_CHECK_ACCEPT("invitationCheckAccept","验收接受"),
    CHECK("check","验收"),
    METER_HOOK("meterHook","表记挂接"),
    CONTRACT_SIGN("contractSign","合同签订"),
    SURVEY_APPROVAL("surveyApproval","二供审核"),
    DATA_ARCHIVE("dataArchive","资料归档");

    /**
     * 状态
     */
    private String processState;
    /**
     * 状态名称
     */
    private String processName;

    public static String getNodeCodeName(String nodeCode) {
        if (nodeCode.equals(PjInfoProcessStateEnum.REGISTER.getProcessState())) {
            return PjInfoProcessStateEnum.REGISTER.getProcessName();
        } else if (nodeCode.equals(PjInfoProcessStateEnum.REGISTER_APPROVAL.getProcessState())) {
            return PjInfoProcessStateEnum.REGISTER_APPROVAL.getProcessName();
        } else if (nodeCode.equals(PjInfoProcessStateEnum.INFO_APPROVAL.getProcessState())) {
            return PjInfoProcessStateEnum.INFO_APPROVAL.getProcessName();
        } else if (nodeCode.equals(PjInfoProcessStateEnum.INVITATION_SURVEY.getProcessState())) {
            return PjInfoProcessStateEnum.INVITATION_SURVEY.getProcessName();
        } else if (nodeCode.equals(PjInfoProcessStateEnum.INVITATION_ACCEPT.getProcessState())) {
            return PjInfoProcessStateEnum.INVITATION_ACCEPT.getProcessName();
        } else if (nodeCode.equals(PjInfoProcessStateEnum.SURVEY.getProcessState())) {
            return PjInfoProcessStateEnum.SURVEY.getProcessName();
        } else if (nodeCode.equals(PjInfoProcessStateEnum.DESIGN.getProcessState())) {
            return PjInfoProcessStateEnum.DESIGN.getProcessName();
        } else if (nodeCode.equals(PjInfoProcessStateEnum.DESIGN_APPROVAL.getProcessState())) {
            return PjInfoProcessStateEnum.DESIGN_APPROVAL.getProcessName();
        } else if (nodeCode.equals(PjInfoProcessStateEnum.BUDGET.getProcessState())) {
            return PjInfoProcessStateEnum.BUILD.getProcessName();
        } else if (nodeCode.equals(PjInfoProcessStateEnum.BUDGET_APPROVAL.getProcessState())) {
            return PjInfoProcessStateEnum.BUDGET_APPROVAL.getProcessName();
        } else if (nodeCode.equals(PjInfoProcessStateEnum.BUILD.getProcessState())) {
            return PjInfoProcessStateEnum.BUILD.getProcessName();
        } else if (nodeCode.equals(PjInfoProcessStateEnum.INSTALL_BUILD.getProcessState())) {
            return PjInfoProcessStateEnum.INSTALL_BUILD.getProcessName();
        } else if (nodeCode.equals(PjInfoProcessStateEnum.REGISTER_ACCOUNT.getProcessState())) {
            return PjInfoProcessStateEnum.REGISTER_ACCOUNT.getProcessName();
        } else if (nodeCode.equals(PjInfoProcessStateEnum.REGISTER_ACCOUNT_APPROVAL.getProcessState())) {
            return PjInfoProcessStateEnum.REGISTER_ACCOUNT_APPROVAL.getProcessName();
        } else if (nodeCode.equals(PjInfoProcessStateEnum.INVITATION_CHECK.getProcessState())) {
            return PjInfoProcessStateEnum.INVITATION_CHECK.getProcessName();
        } else if (nodeCode.equals(PjInfoProcessStateEnum.CHECK.getProcessState())) {
            return PjInfoProcessStateEnum.CHECK.getProcessName();
        } else if (nodeCode.equals(PjInfoProcessStateEnum.METER_HOOK.getProcessState())) {
            return PjInfoProcessStateEnum.METER_HOOK.getProcessName();
        } else if (nodeCode.equals(PjInfoProcessStateEnum.DATA_ARCHIVE.getProcessState())) {
            return PjInfoProcessStateEnum.DATA_ARCHIVE.getProcessName();
        } else if (nodeCode.equals(PjInfoProcessStateEnum.CONTRACT_SIGN.getProcessState())) {
            return PjInfoProcessStateEnum.CONTRACT_SIGN.getProcessName();
        }else if (nodeCode.equals(PjInfoProcessStateEnum.SURVEY_APPROVAL.getProcessState())) {
            return PjInfoProcessStateEnum.SURVEY_APPROVAL.getProcessName();
        }else {

            return null;
        }
    }
}
